package byx.container.annotation.WrapTest;

import byx.container.annotation.annotation.Register;
import java.util.function.Function;

@Register
public class W2 implements Function<E, E> {
    private final String v2;

    public W2(String v2) {
        this.v2 = v2;
    }

    @Override
    public E apply(E e) {
        return new E() {
            @Override
            public String f(int i) {
                return v2 + "!";
            }

            @Override
            public int g(String s) {
                return e.g(s);
            }
        };
    }
}
